package com.sxzbxc.weixin.service.impl;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.sxzbxc.weixin.dao.DicLineinfoDao;
import com.sxzbxc.weixin.entity.DicLineinfo;
import com.sxzbxc.weixin.service.DicLineinfoServiceI;

@Service("dicLineinfoServiceImpl")
public class DicLineinfoServiceImpl implements DicLineinfoServiceI {

	@Autowired
	private DicLineinfoDao dicLineinfoDao;
	
	@Override
	public List<DicLineinfo> loadAll() {
		List<DicLineinfo> loadAll = dicLineinfoDao.loadAll();
		return loadAll;
	}

	@Override
	public void insertSelective(DicLineinfo entity) {
		dicLineinfoDao.insertSelective(entity);
	}

	@Override
	public DicLineinfo selectByPrimaryKey(String id) {
		DicLineinfo dicLineinfo = dicLineinfoDao.selectByPrimaryKey(id);
		if(dicLineinfo!=null){
			return dicLineinfo;
		}
		return null;
	}

	@Override
	public void updateByPrimaryKeySelective(DicLineinfo record) {
		dicLineinfoDao.updateByPrimaryKeySelective(record);
	}

	@Override
	public void deleteByPrimaryKey(String id) {
		dicLineinfoDao.deleteByPrimaryKey(id);
	}

}
